public static function create(ContainerInterface
$container, array
$configuration,
$plugin_id,
$plugin_definition) { return new static($configuration,
$plugin_id,
$plugin_definition);
} /**
* {@inheritdoc}
*/
public function init(ViewExecutable
$view, DisplayPluginBase
$display, array &
$options = NULL
) { $this->view =
$view;
$this->options =
$this->options ??
[];
$this->
setOptionDefaults($this->options,
$this->
defineOptions());
$this->displayHandler =
$display;
$this->
unpackOptions($this->options,
$options);
} /**
* Information about options for all kinds of purposes will be held here.
* @code
* '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().
* ),
* @endcode
*
* @return array
* Returns the options of this handler/plugin.
*/