function CommentManagerInterface::getFields

Same name in other branches
  1. 8.9.x core/modules/comment/src/CommentManagerInterface.php \Drupal\comment\CommentManagerInterface::getFields()
  2. 10 core/modules/comment/src/CommentManagerInterface.php \Drupal\comment\CommentManagerInterface::getFields()
  3. 11.x core/modules/comment/src/CommentManagerInterface.php \Drupal\comment\CommentManagerInterface::getFields()

Utility function to return an array of comment fields.

Parameters

string $entity_type_id: The content entity type to which the comment fields are attached.

Return value

array An array of comment field map definitions, keyed by field name. Each value is an array with two entries:

  • type: The field type.
  • bundles: The bundles in which the field appears, as an array with entity types as keys and the array of bundle names as values.
1 method overrides CommentManagerInterface::getFields()
CommentManager::getFields in core/modules/comment/src/CommentManager.php

File

core/modules/comment/src/CommentManagerInterface.php, line 35

Class

CommentManagerInterface
Comment manager contains common functions to manage comment fields.

Namespace

Drupal\comment

Code

public function getFields($entity_type_id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.