Skip to content
Snippets Groups Projects
Commit ce55d214 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3507882: Introduce Hook classes - WorkflowViewsHooks.php

parent ad273e75
No related branches found
No related tags found
No related merge requests found
Pipeline #443166 passed with warnings
......@@ -20,7 +20,6 @@ class WorkflowViewsHooks {
*/
#[Hook('field_views_data')]
public function fieldViewsData(FieldStorageConfigInterface $field) {
dpm(__FUNCTION__);
if (version_compare(\Drupal::VERSION, '11.2') >= 0) {
$data = \Drupal::service('views.field_data_provider')
->defaultFieldImplementation($field);
......@@ -53,7 +52,6 @@ class WorkflowViewsHooks {
*/
#[Hook('views_data_alter')]
public function viewsDataAlter(array &$data) {
dpm(__FUNCTION__);
// Provide an integration for each entity type except workflow entities.
// Copied from comment.views.inc.
foreach (\Drupal::entityTypeManager()->getDefinitions() as $entity_type_id => $entity_type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment