Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Drupal\Core\Http; use Drupal\Core\Plugin\PluginBase; /** * Defines a s..
Decoded Output download
<?php
namespace Drupal\Core\Http;
use Drupal\Core\Plugin\PluginBase;
/**
* Defines a single link relationship type.
*/
class LinkRelationType extends PluginBase implements LinkRelationTypeInterface {
/**
* {@inheritdoc}
*/
public function isRegistered() {
return !$this->isExtension();
}
/**
* {@inheritdoc}
*/
public function isExtension() {
return isset($this->pluginDefinition['uri']);
}
/**
* {@inheritdoc}
*/
public function getRegisteredName() {
return $this->isRegistered() ? $this->getPluginId() : NULL;
}
/**
* {@inheritdoc}
*/
public function getExtensionUri() {
return $this->isExtension() ? $this->pluginDefinition['uri'] : NULL;
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this->pluginDefinition['description'] ?? '';
}
/**
* {@inheritdoc}
*/
public function getReference() {
return $this->pluginDefinition['reference'] ?? '';
}
/**
* {@inheritdoc}
*/
public function getNotes() {
return $this->pluginDefinition['notes'] ?? '';
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\Core\Http;
use Drupal\Core\Plugin\PluginBase;
/**
* Defines a single link relationship type.
*/
class LinkRelationType extends PluginBase implements LinkRelationTypeInterface {
/**
* {@inheritdoc}
*/
public function isRegistered() {
return !$this->isExtension();
}
/**
* {@inheritdoc}
*/
public function isExtension() {
return isset($this->pluginDefinition['uri']);
}
/**
* {@inheritdoc}
*/
public function getRegisteredName() {
return $this->isRegistered() ? $this->getPluginId() : NULL;
}
/**
* {@inheritdoc}
*/
public function getExtensionUri() {
return $this->isExtension() ? $this->pluginDefinition['uri'] : NULL;
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this->pluginDefinition['description'] ?? '';
}
/**
* {@inheritdoc}
*/
public function getReference() {
return $this->pluginDefinition['reference'] ?? '';
}
/**
* {@inheritdoc}
*/
public function getNotes() {
return $this->pluginDefinition['notes'] ?? '';
}
}
Function Calls
None |
Stats
MD5 | 126076f2557a185a2b77fe4cf8f224aa |
Eval Count | 0 |
Decode Time | 99 ms |