You are here

public function GoogleAnalyticsCounterCustomFieldGeneratorInterface::gacAddField in Google Analytics Counter 8.3

Adds the checked the fields.

Parameters

\Drupal\node\NodeTypeInterface $type: A node type entity.

string $label: The formatter label display setting.

Return value

\Drupal\Core\Entity\EntityInterface|\Drupal\field\Entity\FieldConfig|null

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

\Drupal\Core\Entity\EntityStorageException

1 method overrides GoogleAnalyticsCounterCustomFieldGeneratorInterface::gacAddField()
GoogleAnalyticsCounterCustomFieldGenerator::gacAddField in src/GoogleAnalyticsCounterCustomFieldGenerator.php
Adds the checked the fields.

File

src/GoogleAnalyticsCounterCustomFieldGeneratorInterface.php, line 41

Class

GoogleAnalyticsCounterCustomFieldGeneratorInterface
Defines the Google Analytics Counter custom field generator.

Namespace

Drupal\google_analytics_counter

Code

public function gacAddField(NodeTypeInterface $type, $label = 'Google Analytics Counter');