This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

php warning: Deprecated function, after form submit

Hi,

I have an ajax callback function in the form submit:

$form['display'] = [
     
      '#type' => 'button',
      '#value' => $this->t('More'),
       '#ajax' => [
        'callback' => 'Drupal\heritage_ui\Controller\HeritageTextContent::metadataDisplay',
        'effect' => 'slide',
        'event' => 'click',
      ],
    ];

I am getting a php warning:

Could not retrieve the oEmbed resource

I am facing an issue while uploading image in media library that your image could not retrieve the oEmbed resource.

Help will be appreciated.
 

ParseError: syntax error, unexpected 'public' (T_PUBLIC)

Hello,

Following code gives me error

"The website encountered an unexpected error. Please try again later.
ParseError: syntax error, unexpected 'public' (T_PUBLIC) in Composer\Autoload\includeFile() (line 41 of modules\custom\rsvplist\src\EnablerService.php)."

Address requires the commerceguys/addressing library

Hi,

I don't know how to install correctly the module Address with Drupal 8.

I don't use Ludwig nor Composer.

How to make it using classic ftp ?

JSON:API Display Mode?

Is there anyway to see a content types display modes through jsonapi? This would allow be to configure teaser etc. for display on decoupled Drupal. 

Warning: Give to trusted roles only; this permission has security implications.

Views UI: Administer views

I need to add anonymous access for this so that views show up on the JSON:API. 

Is this the best method to see my views on /jsonapi?

What are the security concerns that the message is hinting at?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions