public function NodeField::getEmptyOption in Entity Field Condition 8
Return the empty option for the select elements.
Return value
array Returns the empty option for the select elements.
2 calls to NodeField::getEmptyOption()
- NodeField::getNodeFields in src/
Plugin/ Condition/ NodeField.php - Return the fields for a content type.
- NodeField::getNodeTypes in src/
Plugin/ Condition/ NodeField.php - Return the node types.
File
- src/
Plugin/ Condition/ NodeField.php, line 171
Class
- NodeField
- Provides a 'Node Field' condition.
Namespace
Drupal\entity_field_condition\Plugin\ConditionCode
public function getEmptyOption() {
return [
'' => $this
->t('None'),
];
}