protected function MaestroEngineEntityIdentifierEditLink::defineOptions in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/views/field/MaestroEngineEntityIdentifierEditLink.php \Drupal\maestro\Plugin\views\field\MaestroEngineEntityIdentifierEditLink::defineOptions()
Define the available options.
Return value
array The array of options.
Overrides FieldPluginBase::defineOptions
File
- src/
Plugin/ views/ field/ MaestroEngineEntityIdentifierEditLink.php, line 31
Class
- MaestroEngineEntityIdentifierEditLink
- Field handler to generate an edit link to the entity if possible based on user perms.
Namespace
Drupal\maestro\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['edit_text'] = [
'default' => $this
->t('Edit'),
];
return $options;
}