The headline (also heading, head or title, or hed in journalism jargon) of a story is typically a complete sentence (e.g., "Pilot Flies Below Bridges to Save Divers"), often with auxiliary verbs and articles removed (e.g., "Remains at Colorado camp linked to missing Chicago man"). However, headlines sometimes omit the subject (e.g., "Jumps From Boat, Catches in Wheel") or verb (e.g., "Cat woman lucky").
From Wikipedia
See also:
Glossary of Journalism on Wiktionary
$headlineElement = new Headline( string $text [, int $level [, array $params ] ] );
or
$headlineElement = Headline::from( array|object $data [, array $mapping [, array $params ] ] );
data
must contain values for the required constructor argument text
.
Property | Type | Description | Required |
---|---|---|---|
text | string | The text for the headline | yes |
level | int | The level of the headline | - |
Get the text for the headline.
$text = $headlineElement->get( 'text' );
Get the level of the headline.
$level = $headlineElement->get( 'level' [, $default ] );
Parameters are optional settings for the presentation. All elements can have 'id' and 'class' parameters; other depend on environment and/or renderer.
Parameter | Type | Description |
---|---|---|
id | string | The ID of the element |
class | string | CSS class |
Get an associative array with all parameters.
$params = $headlineElement->getParameters();
Retrieve a single parameter. Default should be provided.
$id = $headlineElement->getParameter( 'id' [, $default ] );
$class = $headlineElement->getParameter( 'class' [, $default ] );