elseif (!
empty($data['table'
][$key])) { $definition_key =
$key === 'entity type' ? 'entity_type' :
$key;
$definition[$definition_key] =
$data['table'
][$key];
} } } // @todo This is crazy. Find a way to remove the override functionality.
$plugin_id =
$override ?:
$definition['id'
];
// Try to use the overridden handler.
$handler =
$this->
createInstance($plugin_id,
$definition);
if ($override &&
method_exists($handler, 'broken'
) &&
$handler->
broken()) { $handler =
$this->
createInstance($definition['id'
],
$definition);
} return $handler;
} // Finally, use the 'broken' handler.
return $this->
createInstance('broken',
['original_configuration' =>
$item]);
} /**
* {@inheritdoc}
*/