public function SyncState::init in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 modules/cms_content_sync_views/src/Plugin/views/filter/SyncState.php \Drupal\cms_content_sync_views\Plugin\views\filter\SyncState::init()
- 2.1.x modules/cms_content_sync_views/src/Plugin/views/filter/SyncState.php \Drupal\cms_content_sync_views\Plugin\views\filter\SyncState::init()
Overrides \Drupal\views\Plugin\views\HandlerBase::init().
Provide some extra help to get the operator/value easier to use.
This likely has to be overridden by filters which are more complex than simple operator/value.
Overrides InOperator::init
File
- modules/
cms_content_sync_views/ src/ Plugin/ views/ filter/ SyncState.php, line 29
Class
- SyncState
- Provides a view filter to filter on the sync state entity.
Namespace
Drupal\cms_content_sync_views\Plugin\views\filterCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
$this->base_field = $view->storage
->get('base_field');
}