Gets the plugin definitions for this entity type.
string $type: The entity type name.
array An array of plugin definitions for this entity type.
public function getDefinitionsByType($type) {
return array_filter($this
->getDefinitions(), function ($definition) use ($type) {
return $definition['type'] === $type;
});
}