Back to TagField class

Method allowCustom

public bool
allowCustom
()
Determines if the field allows or denies custom values
Returns
  • bool
Class: TagField
Project: Joomla

Method allowCustom - Source code

/**
 * Determines if the field allows or denies custom values
 *
 * @return  boolean
 */
public function allowCustom()
{
    if ($this->element['custom'] && \in_array((string) $this->element['custom'], array('0', 'false', 'deny'))) {
        return false;
    }
    return Factory::getUser()->authorise('core.create', 'com_tags');
}