You are here

final class ClassResolver in Layout Builder Symmetric Translations 8

ClassResolver to load the extended InlineBlockEntityOperations class.

Hierarchy

Expanded class hierarchy of ClassResolver

1 string reference to 'ClassResolver'
layout_builder_st.services.yml in ./layout_builder_st.services.yml
layout_builder_st.services.yml
1 service uses ClassResolver
class_resolver in ./layout_builder_st.services.yml
Drupal\layout_builder_st\DependencyInjection\ClassResolver

File

src/DependencyInjection/ClassResolver.php, line 12

Namespace

Drupal\layout_builder_st\DependencyInjection
View source
final class ClassResolver extends CoreClassResolver {
  public function getInstanceFromDefinition($definition) {
    if ($definition === CoreInlineBlockEntityOperations::class) {
      $definition = InlineBlockEntityOperations::class;
    }
    return parent::getInstanceFromDefinition($definition);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ClassResolver::getInstanceFromDefinition public function Returns a class instance with a given class definition. Overrides ClassResolver::getInstanceFromDefinition
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2