executeHook($target, $this->pluginDefinition['hook']); } catch (\LogicException $e) { $this->log->warning($e->getMessage(), [ 'target' => $target->id(), 'hook' => $this->pluginDefinition['hook'], ]); return; } foreach ($formatters as $id => $formatter) { $render = [ '#module' => $target->id(), '#class' => $this->toTitleCase($id), '#theme' => 'dmu_formatter', '#info' => [ 'id' => $id, 'label' => $formatter['label'], 'description' => $formatter['description'] ?: NULL, 'field_types' => $formatter['field types'], ], ]; $this->writeClass($target, $this->parse($render)); } } }