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 deprecated methods have been 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. |
|
| protected bool | $deprecationsEnabled | Flag determining whether deprecations should be triggered. |
|
| protected bool | $triggeredDeprecations | Stores which deprecations were triggered. |
Methods
ViewsConfigUpdater constructor.
Instantiates a new instance of this class.
Sets the deprecations enabling status.
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.
Updates the sort handlers by adding default sort field identifiers.
Processes sort handlers by adding the sort identifier.
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.
setDeprecationsEnabled(bool $enabled)
Sets the deprecations enabling status.
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)
deprecated
deprecated
Add additional settings to the entity link field.
protected bool
processEntityLinkUrlHandler(array $handler, string $handler_type, ViewEntityInterface $view)
Processes entity link URL fields.
bool
needsOperatorDefaultsUpdate(ViewEntityInterface $view)
deprecated
deprecated
Add additional settings to the entity link field.
protected bool
processOperatorDefaultsHandler(array $handler, string $handler_type, ViewEntityInterface $view)
Processes operator defaults.
bool
needsMultivalueBaseFieldUpdate(ViewEntityInterface $view)
deprecated
deprecated
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.
bool
needsSortFieldIdentifierUpdate(ViewEntityInterface $view)
Updates the sort handlers by adding default sort field identifiers.
protected bool
processSortFieldIdentifierUpdateHandler(array $handler, string $handler_type)
Processes sort handlers by adding the sort identifier.