This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Drupal\MYMODULE\Plugin\Block; | |
| use Drupal\Core\Block\Attribute\Block; | |
| use Drupal\Core\Block\BlockBase; | |
| use Drupal\Core\Config\TypedConfigManagerInterface; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
| use Drupal\Core\StringTranslation\TranslatableMarkup; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery('#searchresults').children('table').find('td:first-child').each(function () { | |
| if (jQuery.trim(jQuery(this).text()).substring(0, 4) === '0 ma') { | |
| jQuery(this).parent().remove() | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Drupal\Component\Utility\Html; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\filter\FilterPluginCollection; | |
| /** | |
| * Implements hook_form_alter(). | |
| */ | |
| function latinvalidation_form_alter(&$form, FormStateInterface $form_state, $form_id) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Drupal\my_module\Commands; | |
| use Drupal\Component\Utility\Html; | |
| use Drupal\Core\Entity\Sql\SqlEntityStorageInterface; | |
| use Drush\Commands\DrushCommands; | |
| /** | |
| * Drush commands for my module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @file | |
| * Example Drupal 7 module for editing & translating a content type with | |
| * hundreds of fields. See | |
| * https://www.computerminds.co.uk/articles/editing-translating-over-100-fields | |
| */ | |
| /** | |
| * Implements hook_module_implements_alter(). |