ViewsConfigUpdater
class ViewsConfigUpdater implements ContainerInjectionInterface (View source)
| internal | This class is only meant to fix outdated views configuration and its methods should not be invoked directly. It will be removed once all the public methods have been deprecated and removed. |
Provides a BC layer for modules providing old configurations.
Properties
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
|
| protected EntityFieldManagerInterface | $entityFieldManager | The entity field manager. |
|
| protected TypedConfigManagerInterface | $typedConfigManager | The typed config manager. |
|
| protected ViewsData | $viewsData | The views data service. |
|
| protected array | $multivalueBaseFieldsUpdateTableInfo | An array of helper data for the multivalue base field update. |
Methods
ViewsConfigUpdater constructor.
Instantiates a new instance of this class.
Processes all display handlers.
Add additional settings to the entity link field.
Processes entity link URL fields.
Add additional settings to the entity link field.
Processes operator defaults.
Update field names for multi-value base fields.
Returns the multivalue base fields update table info.
Processes handlers affected by the multivalue base field update.
Maps a single operator to a multiple one, if possible.
Details
__construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, TypedConfigManagerInterface $typed_config_manager, ViewsData $views_data)
ViewsConfigUpdater constructor.
static
create(ContainerInterface $container)
Instantiates a new instance of this class.
This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.
bool
updateAll(ViewEntityInterface $view)
Performs all required updates.
protected bool
processDisplayHandlers(ViewEntityInterface $view, bool $return_on_changed, callable $handler_processor)
Processes all display handlers.
bool
needsEntityLinkUrlUpdate(ViewEntityInterface $view)
Add additional settings to the entity link field.
protected bool
processEntityLinkUrlHandler(array $handler, string $handler_type)
Processes entity link URL fields.
bool
needsOperatorDefaultsUpdate(ViewEntityInterface $view)
Add additional settings to the entity link field.
protected bool
processOperatorDefaultsHandler(array $handler, string $handler_type)
Processes operator defaults.
bool
needsMultivalueBaseFieldUpdate(ViewEntityInterface $view)
Update field names for multi-value base fields.
protected array
getMultivalueBaseFieldUpdateTableInfo()
Returns the multivalue base fields update table info.
protected bool
processMultivalueBaseFieldHandler(array $handler, string $handler_type, string $key, string $display_id, ViewEntityInterface $view)
Processes handlers affected by the multivalue base field update.
protected string
mapOperatorFromSingleToMultiple(string $single_operator)
Maps a single operator to a multiple one, if possible.