28 private readonly
string $data,
57 return strlen( $this->data );
117 public function convert( $toModel, $lossy =
'' ) {
127 return $this->
getData() == $that->getData();
132class_alias( FallbackContent::class,
'FallbackContent' );
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
Base class for all Content objects.
Content object implementation representing unknown content.
__construct(private readonly string $data, string $model_id,)
getWikitextForTransclusion()
getTextForSearchIndex()
Returns an empty string.
isCountable( $hasLinks=null)
Returns false.
equalsInternal(Content $that)
Helper for AbstractContent::equals.Do not call this method directly, call Content::equals() instead....
getSize()
Returns the data size in bytes.
convert( $toModel, $lossy='')
getTextForSummary( $maxlength=250)
Returns an empty string.
copy()
Create a copy of this Content object.The following must be true for the returned object,...
Content objects represent page content, e.g.