public static function TextareaWidget::isApplicable in CiviCRM Entity 8.3
Returns if the widget can be used for the provided field.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition that should be checked.
Return value
bool TRUE if the widget can be used, FALSE otherwise.
Overrides WidgetBase::isApplicable
File
- src/
Plugin/ Field/ FieldWidget/ TextareaWidget.php, line 40
Class
- TextareaWidget
- Plugin implementation of the 'text_textarea' widget.
Namespace
Drupal\civicrm_entity\Plugin\Field\FieldWidgetCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return strpos($field_definition
->getTargetEntityTypeId(), 'civicrm_') !== FALSE && $field_definition
->getFieldStorageDefinition()
->isBaseField();
}