<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://mediawiki.gendoas.top/index.php?action=history&amp;feed=atom&amp;title=Syntaxhighlight_php</id>
	<title>Syntaxhighlight php - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.gendoas.top/index.php?action=history&amp;feed=atom&amp;title=Syntaxhighlight_php"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.gendoas.top/index.php?title=Syntaxhighlight_php&amp;action=history"/>
	<updated>2026-09-12T01:04:36Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in mw139</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://mediawiki.gendoas.top/index.php?title=Syntaxhighlight_php&amp;diff=8&amp;oldid=prev</id>
		<title>Mw138su: Die Seite wurde neu angelegt: „‎&lt;syntaxhighlight lang=&quot;php&quot; highlight=&quot;3-5,8,15-17,30&quot; line&gt; &lt;?php  /**  * @file  * Contains \Drupal\sxt_mediawiki\Plugin\Field\FieldType\MwCommentFieldType.  */  namespace Drupal\sxt_mediawiki\Plugin\Field\FieldType;  use Drupal\sxt_mediawiki\Plugin\Field\FieldType\MediaWikiFieldType; use Drupal\Core\Field\FieldDefinitionInterface;  /**  * Plugin implementation of the &#039;sxt_mwcomment&#039; field type.  *  * @FieldType(  *   id = &quot;sxt_mwcomment&quot;,  *   label…“</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.gendoas.top/index.php?title=Syntaxhighlight_php&amp;diff=8&amp;oldid=prev"/>
		<updated>2022-06-24T14:13:48Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „‎&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot; highlight=&amp;quot;3-5,8,15-17,30&amp;quot; line&amp;gt; &amp;lt;?php  &lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;*  * @file  * Contains \Drupal\sxt_mediawiki\Plugin\Field\FieldType\MwCommentFieldType.: &lt;/span&gt;  namespace Drupal\sxt_mediawiki\Plugin\Field\FieldType;  use Drupal\sxt_mediawiki\Plugin\Field\FieldType\MediaWikiFieldType; use Drupal\Core\Field\FieldDefinitionInterface;  /**  * Plugin implementation of the &amp;#039;sxt_mwcomment&amp;#039; field type.  *  * @FieldType(  *   id = &amp;quot;sxt_mwcomment&amp;quot;,  *   label…“&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;‎&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot; highlight=&amp;quot;3-5,8,15-17,30&amp;quot; line&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * @file&lt;br /&gt;
 * Contains \Drupal\sxt_mediawiki\Plugin\Field\FieldType\MwCommentFieldType.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
namespace Drupal\sxt_mediawiki\Plugin\Field\FieldType;&lt;br /&gt;
&lt;br /&gt;
use Drupal\sxt_mediawiki\Plugin\Field\FieldType\MediaWikiFieldType;&lt;br /&gt;
use Drupal\Core\Field\FieldDefinitionInterface;&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Plugin implementation of the &amp;#039;sxt_mwcomment&amp;#039; field type.&lt;br /&gt;
 *&lt;br /&gt;
 * @FieldType(&lt;br /&gt;
 *   id = &amp;quot;sxt_mwcomment&amp;quot;,&lt;br /&gt;
 *   label = @Translation(&amp;quot;MW Comment&amp;quot;),&lt;br /&gt;
 *   description = @Translation(&amp;quot;This field stores comments in mediawiki format.&amp;quot;),&lt;br /&gt;
 *   category = @Translation(&amp;quot;Text&amp;quot;),&lt;br /&gt;
 *   default_widget = &amp;quot;sxt_mediawiki&amp;quot;,&lt;br /&gt;
 *   default_formatter = &amp;quot;sxt_mediawiki&amp;quot;&lt;br /&gt;
 * )&lt;br /&gt;
 */&lt;br /&gt;
class MwCommentFieldType extends MediaWikiFieldType {&lt;br /&gt;
&lt;br /&gt;
  /**&lt;br /&gt;
   * {@inheritdoc}&lt;br /&gt;
   */&lt;br /&gt;
  public static function generateSampleValue(FieldDefinitionInterface $field_definition) {&lt;br /&gt;
    $values[&amp;#039;value&amp;#039;] = self::generateParagraphs(mt_rand(1, 4), self::PARA_TEXT);&lt;br /&gt;
    return $values;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  protected static function getParagraphsAvailable() {&lt;br /&gt;
    return [&lt;br /&gt;
      self::PARA_TEXT,&lt;br /&gt;
      self::PARA_ULIST,&lt;br /&gt;
      self::PARA_ULIST,&lt;br /&gt;
      self::PARA_OLIST,&lt;br /&gt;
      self::PARA_OLIST,&lt;br /&gt;
      self::PARA_DEFLIST,&lt;br /&gt;
    ];&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mw138su</name></author>
	</entry>
</feed>