$this->definitions =
$this->manager->
getDefinitions();
// Do not allow the null filter to be used directly, only as a fallback.
unset($this->definitions
['filter_null'
]);
} // Ensure that there is an instance of all available filters.
// Note that getDefinitions() are keyed by $plugin_id. $instance_id is the
// $plugin_id for filters, since a single filter plugin can only exist once
// in a format.
foreach ($this->definitions
as $plugin_id =>
$definition) { if (!
isset($this->pluginInstances
[$plugin_id])) { $this->
initializePlugin($plugin_id);
} } return $this->pluginInstances;
} /**
* {@inheritdoc}
*/
protected function initializePlugin($instance_id) { // Filters have a 1:1 relationship to text formats and can be added and
// instantiated at any time.