Back to ContenttypeField class

Method getInput

protected string
getInput
()
Method to get the field input for a list of content types.
Returns
  • string The field input.
Since
  • 3.1

Method getInput - Source code

/**
 * Method to get the field input for a list of content types.
 *
 * @return  string  The field input.
 *
 * @since   3.1
 */
protected function getInput()
{
    if (!\is_array($this->value)) {
        if (\is_object($this->value)) {
            $this->value = $this->value->tags;
        }
        if (\is_string($this->value)) {
            $this->value = explode(',', $this->value);
        }
    }
    return parent::getInput();
}