You are here

protected function OptionsBase::isOptionsOther in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/OptionsBase.php \Drupal\webform\Plugin\WebformElement\OptionsBase::isOptionsOther()

Determine if the element plugin type includes an other option text field.

Return value

bool TRUE if the element plugin type includes an other option text field.

3 calls to OptionsBase::isOptionsOther()
OptionsBase::defineDefaultProperties in src/Plugin/WebformElement/OptionsBase.php
Define an element's default properties.
OptionsBase::getElementSelectorInputValue in src/Plugin/WebformElement/OptionsBase.php
Get an element's (sub)input selector value.
OptionsBase::prepare in src/Plugin/WebformElement/OptionsBase.php
Prepare an element to be rendered within a webform.

File

src/Plugin/WebformElement/OptionsBase.php, line 103

Class

OptionsBase
Provides a base 'options' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function isOptionsOther() {
  return $this
    ->getOptionsOtherType() ? TRUE : FALSE;
}