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 AppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Component\Finder\Finder; | |
class TestController extends Controller |
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\dies_event\Plugin\Block; | |
use Drupal\Core\Block\BlockBase; | |
/** | |
* @file | |
* Article Library Menu. | |
*/ |
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 | |
//https://api.drupal.org/api/views/views.api.php/function/hook_views_pre_view/7.x-3.x | |
/** | |
* Implements hook_views_pre_view(). | |
*/ | |
function dies_service_views_pre_view(ViewExecutable $view, $display_id, array &$args) { | |
// The term name cannot be extracted and assigned to the view as a | |
// contextual filter using page_manager currently. Instead, we | |
// pass keyword argument here. |
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
{# | |
/** | |
* @file | |
* Theme override to display a block. | |
* | |
* Available variables: | |
* - plugin_id: The ID of the block implementation. | |
* - label: The configured label of the block if visible. | |
* - configuration: A list of the block's configuration values. | |
* - label: The configured label for the block. |
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
var passengers = [ | |
["Thomas", "Meeks"], | |
["Gregg", "Pollack"], | |
["Christine", "Wong"], | |
["Dan", "McGaw"] | |
]; | |
var modifiedNames = passengers.map(function (arrayCell) { | |
return arrayCell[0] + ' ' + arrayCell[1]; | |
}); |
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\custom\Plugin\Field\FieldFormatter; | |
use Drupal\Core\Field\FormatterBase; | |
use Drupal\Core\Field\FieldItemListInterface; | |
/** | |
* Plugin implementation of the 'Custom' formatter. | |
* | |
* @FieldFormatter( |
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
import React, { Component } from 'react'; | |
import { AppRegistry, Text } from 'react-native'; | |
class MessageApp extends Component { | |
render() { | |
return ( | |
<Text>This is my message yes sir!! tomorrow meeting! :)</Text> | |
); | |
} | |
} |
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
let topic = { | |
'title': 'my title', | |
'author': 'edu', | |
'body': 'omg' | |
}; | |
let title = `<h2> ${topic.title} </h2>`; | |
let author = `<small> ${topic.author} </small>`; | |
let body = `<p> ${topic.body}</p>`; | |
let message = { title, author, body }; | |
console.log(message); |
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
import React, { Component } from 'react'; | |
import { AppRegistry, Text, TextInput, View } from 'react-native'; | |
class PizzaTranslator extends Component { | |
constructor(props) { | |
super(props); | |
this.state = {text: ''}; | |
} | |
render() { |