You are here

protected function ViewsMegarowLinkEdit::defineOptions in Views Megarow 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides EntityLink::defineOptions

File

src/Plugin/views/field/ViewsMegarowLinkEdit.php, line 39

Class

ViewsMegarowLinkEdit
Field handler to present a link node edit.

Namespace

Drupal\views_megarow\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();

  // Override the alter text option to always alter the text.
  //    $options['alter']['contains']['alter_text'] = array('default' => TRUE);
  //    $options['hide_alter_empty'] = array('default' => FALSE);
  return $options;
}