Commit 5ba7b026 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Issue #10: Use module invoke from xautoload

parent ffca99c2
......@@ -7,10 +7,7 @@
namespace Drupal\typed_entity_example\Tests;
use Drupal\typed_entity\TypedEntity\TypedEntity;
use Drupal\typed_entity\TypedEntity\TypedEntityManager;
use Drupal\typed_entity_example\TypedEntity\Node\Article;
use Drupal\typed_entity_example\TypedEntity\TypedNode;
class TypedEntityExampleWebTestCase extends \DrupalWebTestCase {
......
......@@ -89,7 +89,7 @@ class TypedEntityManager implements TypedEntityManagerInterface {
* An array of class name candidates.
*/
protected static function getClassNameCandidates($entity_type, $bundle = NULL) {
$candidates = module_invoke_all('typed_entity_registry_info');
$candidates = static::$system->moduleInvokeAll('typed_entity_registry_info');
$candidate_entity_type = $candidate_bundle = '';
foreach ($candidates as $candidate) {
if ($candidate['entity_type'] != $entity_type) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment