public static function TransactionInlineEntityFormNewTransaction::isApplicable in Transaction 8
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 InlineEntityFormSimple::isApplicable
File
- modules/
transaction_ief/ src/ Plugin/ Field/ FieldWidget/ TransactionInlineEntityFormNewTransaction.php, line 35
Class
- TransactionInlineEntityFormNewTransaction
- Transaction creation inline widget.
Namespace
Drupal\transaction_ief\Plugin\Field\FieldWidgetCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return parent::isApplicable($field_definition) && $field_definition
->getFieldStorageDefinition()
->getSetting('target_type') == 'transaction';
}