Chris@0: alterInfo('action_info'); Chris@0: $this->setCacheBackend($cache_backend, 'action_info'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Gets the plugin definitions for this entity type. Chris@0: * Chris@0: * @param string $type Chris@0: * The entity type name. Chris@0: * Chris@0: * @return array Chris@0: * An array of plugin definitions for this entity type. Chris@0: */ Chris@0: public function getDefinitionsByType($type) { Chris@0: return array_filter($this->getDefinitions(), function ($definition) use ($type) { Chris@0: return $definition['type'] === $type; Chris@0: }); Chris@0: } Chris@0: Chris@0: }