public function ParagraphsBehaviorInterface::getFieldNameOptions

Returns list of field names for the given paragraph type and field type.

Parameters

\Drupal\paragraphs\Entity\ParagraphsType $paragraphs_type: The paragraphs type entity.

string $field_type: (optional) Field type to check for existence. If field type is not provided, returns all entity fields.

Return value

string[] The list of field labels keyed by their field name.

1 method overrides ParagraphsBehaviorInterface::getFieldNameOptions()
ParagraphsBehaviorBase::getFieldNameOptions in paragraphs/src/ParagraphsBehaviorBase.php
Returns list of field names for the given paragraph type and field type.

File

paragraphs/src/ParagraphsBehaviorInterface.php, line 151

Class

ParagraphsBehaviorInterface
Provides an interface defining a paragraph behavior.

Namespace

Drupal\paragraphs

Code

public function getFieldNameOptions(ParagraphsType $paragraphs_type, $field_type = NULL);