diff --git a/src/Entity/Paragraph.php b/src/Entity/Paragraph.php index ea53154..7ef5be0 100644 --- a/src/Entity/Paragraph.php +++ b/src/Entity/Paragraph.php @@ -552,7 +552,9 @@ class Paragraph extends ContentEntityBase implements ParagraphInterface, EntityN * @param string $field_name * Field definition id for paragraph. * @param array $options - * Array of paragraph options. + * (optional) An associative array of additional options. + * See \Drupal\paragraphs\ParagraphInterface::getSummary() for all of the + * available options. * * @return string * Short summary for nested paragraphs type. diff --git a/src/ParagraphInterface.php b/src/ParagraphInterface.php index 728bb3c..59cad00 100644 --- a/src/ParagraphInterface.php +++ b/src/ParagraphInterface.php @@ -25,7 +25,9 @@ interface ParagraphInterface extends ContentEntityInterface, EntityOwnerInterfac * Returns short summary for paragraph. * * @param array $options - * Array of paragraph options. + * (optional) Array of additional options, with the following elements: + * - 'show_behavior_summary': Whether the summary should contain the + * behavior settings. TRUE enforces behavior settings in summary. * * @return string * The text without tags.