public function ParagraphsBehaviorInterface::getFieldNameOptions in Paragraphs 8
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 src/
ParagraphsBehaviorBase.php - Returns list of field names for the given paragraph type and field type.
File
- src/
ParagraphsBehaviorInterface.php, line 154
Class
- ParagraphsBehaviorInterface
- Provides an interface defining a paragraph behavior.
Namespace
Drupal\paragraphsCode
public function getFieldNameOptions(ParagraphsType $paragraphs_type, $field_type = NULL);